package com.action.common.constant;

/**
 * @author sl shilun217@qq.com
 * @Deacription
 * @date 2021/07/03/18:08
 **/
public class OrderConstant {
    public static String USER_ORDER_TOKEN_PREFIX = "order:token:";
    public static String ORDERSN_GENERATE_KEY= "order:generate";
    /**
     * @author sl shilun217@qq.com
     * @Deacription 订单状态
     * @date 2021/07/03/21:46
     **/
    public enum OrderStatusEnum {
        CREATE_NEW(0,"待付款"),
        PAYED(1,"已付款"),
        SENDED(2,"已发货"),
        RECIEVED(3,"已完成"),
        CANCLED(4,"已取消"),
        SERVICING(5,"售后中"),
        SERVICED(6,"售后完成");
        private Integer code;
        private String msg;

        OrderStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum PayType {
        ALIPAY("支付宝"),
        WXPAY("微信");
        private String msg;

        PayType(String msg) {
            this.msg = msg;
        }
        public String getMsg() {
            return msg;
        }
    }

}
